package net.lab1024.sa.base.common.domain;

import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.HashMap;
import java.util.Map;

/**
 * 流程业务对象
 */
@Data
public class WorkFlowBusinessBo {
    /**
     * 任务Id
     */
    @NotNull(message = "任务Id不能为空")
    private String formId;

    @NotNull(message = "流程定义Id不能为空")
    private String definitionId;


    @NotNull(message = "流程Key不能为空")
    private String processKey;


    @NotNull(message = "业务Key不能为空")
    private String servicePath;

    @NotNull(message = "业务参数不能为空")
    private Object formData;

    private Map<String, Object> variables=new HashMap<>();
}
